package com.aya.aop.cycle;

import com.aya.aop.asp.AopAnnotation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Async;

public class Chicken {

    private Egg egg;

    public Egg getEgg() {
        return egg;
    }

    public void setEgg(Egg egg) {
        this.egg = egg;
    }

    private static final Logger logger = LoggerFactory.getLogger(Chicken.class);
    @Async
    @AopAnnotation
    public void saHi() {
        logger.info("egg say hi");
    }

}
